package other_其他模式.business_delegate_pattern_业务代表模式;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: hihi
 * @Date: 2020/07/10/10:41
 * @Description:
 */
public class BusinessesDelegatePatternDemo {
	public static void main(String[] args) {
		BusinessesDelegate businessesDelegate = new BusinessesDelegate("jms");

		Client client = new Client(businessesDelegate);

		client.doTask();

		businessesDelegate.setType("aaaa");

		client.doTask();
	}
}
